package com.p2p.controller.loanManagement;

import com.p2p.common.R;
import io.swagger.annotations.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/shelfType")
@Api(value = "上架类型API",tags = "借贷管理的上架类型API")
public class ShelfType {
    /**
     * 分页显示上架类型
     * @param currentPage 当前页码数默认第一页
     * @param pageSize 每页显示记录数
     *@return R
     */
    @ApiOperation(value = "分页显示上架类型",notes = "分页显示上架类型",httpMethod = "GET", response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "currentPage",value = "当前页码数默认第一页",paramType = "query",dataType = "String",required = true),
            @ApiImplicitParam(name = "pageSize",value = "每页显示记录数",paramType = "query",dataType = "String",required = true)
    })
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @GetMapping(value = "/findShelfTypeList")
    @ResponseBody
    public R findShelfTypeList(Integer currentPage,Integer pageSize ){
        return null;
    }

    /**
     * 添加上架类型
     * @return R
     */
    @ApiOperation(value = "添加上架类型",notes = "添加上架类型",httpMethod = "GET", response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @GetMapping(value = "/addShelfType")
    @ResponseBody
    public R addShelfType(){
        return null;
    }

    /**
     * 修改上架类型
     * @return R
     */
    @ApiOperation(value = "修改上架类型",notes = "修改上架类型",httpMethod = "GET", response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @GetMapping(value = "/updateShelfType")
    @ResponseBody
    public R updateShelfType(){
        return null;
    }



}
